
import React from 'react';
import { Suspense } from 'react';
import "./assets/styles/reset.css"
import { useRoutes } from "react-router-dom"
import routes from "./router/index"
import Layout from './conmpones/loayt/index';
function App(props) {
  function RouteElement() {
    let element = useRoutes(routes)
    return element
  }
  return (
    <>
      <Suspense fallback={<div>加载中.....</div>}>
        <Layout>
           {RouteElement()}
        </Layout>

      </Suspense>

    </>

  )
}


export default App;
